package main
import(
	"fmt";
	"strings"
)

func main(){
	//查询字符串
	fmt.Printf("%v \n",strings.Contains("hello world","hello"))
	//查询字符出现的数量
	fmt.Printf("%d \n",strings.Count("hello world","or"))
	//比较字符串，不区分大小写
	fmt.Printf("%v \n",strings.EqualFold("abc","ABC"))
	//返回字符串第一次出现的index
	fmt.Printf("%d \n",strings.Index("NLASD_ABC","ABC1"))
}